<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>
      <%= h(yield(:title) || "Untitled") %>
    </title>
    <%= stylesheet_link_tag 'application', 'black-tie/jquery-ui' %>
    <%= auto_discovery_link_tag :atom, articles_path(:atom) %>
    <%=
        javascript_include_tag 'application',
            #prototype + scriptaculous :all
                'prototype', 'scriptaculous', 'unittest',
            #jQuery :ui, :rails
                'jquery', 'jquery-history', 'jquery-ui', 'jrails'
    %>
    <%= yield(:head) %>
    <script type="text/javascript">
        jQuery.noConflict(); //jQuery & Prototype (remote_form_for)
    </script>
  </head>
  <body>
    <div id="container">  
      <div id="user_status">
        <% if logged_in? %>
          Bienvenue <%=h current_user.username %>! Ce n'est pas vu ?
          <%= link_to "Log out", logout_path %>
        <% else %>
          <%= link_to "Sign up", signup_path %> or
          <%= link_to "log in", login_path %>.
        <% end %>
      </div>
      <%- flash.each do |name, msg| -%>
        <%= content_tag :div, msg, :id => "flash_#{name}" %>
      <%- end -%>
      
      <%- if show_title? -%>
        <h1><%=h yield(:title) %></h1>
      <%- end -%>
      
      <%= yield %>
    </div>
  </body>
</html>
